package de.zainodis.commons.utils;

import android.content.Context;
import android.widget.Toast;

/**
 * Utility class for {@link Toast} calls.
 * 
 * @author fzarrai
 * 
 */
public class Toaster {

   /**
    * Displays a {@link Toast} message for a short duration.
    * 
    * @param message
    *           the message to display.
    * @param context
    *           the Activity context used for displaying the toast.
    */
   public static void shortToast(String message, Context context) {
	 Toast.makeText(context, message, Toast.LENGTH_SHORT).show();
   }

   /**
    * Displays a {@link Toast} message for a longer duration.
    * 
    * @param message
    *           the message to display.
    * @param context
    *           the Activity context used for displaying the toast.
    */
   public static void longToast(String message, Context context) {
	 Toast.makeText(context, message, Toast.LENGTH_LONG).show();
   }

}
